Skip to content

[disjoint] Add CTL memory used/reserved metrics - #1430

Closed
KFilipek wants to merge 1 commit into
oneapi-src:mainfrom
KFilipek:dj-used_reserve
Closed

[disjoint] Add CTL memory used/reserved metrics#1430
KFilipek wants to merge 1 commit into
oneapi-src:mainfrom
KFilipek:dj-used_reserve

Conversation

@KFilipek

Copy link
Copy Markdown
Contributor

Description

Checklist

  • Code compiles without errors locally
  • All tests pass locally
  • CI workflows execute properly
  • CI workflows, not executed per PR (e.g. Nightly), execute properly
  • New tests added, especially if they will fail without my changes
  • Added/extended example(s) to cover this functionality
  • Extended the README/documentation
  • All newly added source files have a license
  • All newly added source files are referenced in CMake files
  • Logger (with debug/info/... messages) is used
  • All API changes are reflected in docs and def/map files, and are tested

@KFilipek KFilipek self-assigned this Jul 10, 2025
@KFilipek
KFilipek requested a review from a team as a code owner July 10, 2025 13:21
@KFilipek
KFilipek force-pushed the dj-used_reserve branch 3 times, most recently from 1e1ef90 to e249023 Compare July 10, 2025 15:24
Comment thread test/pools/disjoint_pool_ctl.cpp Outdated
Comment thread test/pools/disjoint_pool_ctl.cpp Outdated
Comment thread test/pools/disjoint_pool_ctl.cpp Outdated
Comment thread test/pools/disjoint_pool_ctl.cpp
Comment thread test/pools/disjoint_pool_ctl.cpp Outdated
Comment thread test/pools/disjoint_pool_ctl.cpp Outdated
Comment thread test/pools/disjoint_pool_ctl.cpp Outdated
Comment thread test/pools/disjoint_pool_ctl.cpp Outdated
Comment thread test/pools/disjoint_pool_ctl.cpp Outdated
@KFilipek
KFilipek force-pushed the dj-used_reserve branch 4 times, most recently from d790924 to 64a80e4 Compare July 11, 2025 13:40
Comment thread test/pools/disjoint_pool_ctl.cpp Outdated
Comment thread test/pools/disjoint_pool_ctl.cpp Outdated
@KFilipek
KFilipek requested a review from bratpiorka July 11, 2025 14:48
@bratpiorka
bratpiorka requested a review from lplewa July 14, 2025 06:54
Comment thread src/pool/pool_disjoint.c
(void)source, (void)indexes, (void)queryType, (void)extra_name;
disjoint_pool_t *pool = (disjoint_pool_t *)ctx;

if (arg == NULL || size < sizeof(size_t)) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

size != sizeof....

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it really have to be an exact size? Isn't < enough?

Comment thread src/pool/pool_disjoint.c
(void)source, (void)indexes, (void)queryType, (void)extra_name;
disjoint_pool_t *pool = (disjoint_pool_t *)ctx;

if (arg == NULL || size < sizeof(size_t)) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dito

Comment thread src/pool/pool_disjoint.c
}

static const umf_ctl_node_t CTL_NODE(disjoint)[] = {
CTL_LEAF_RW(name), CTL_LEAF_RO(used_memory), CTL_LEAF_RO(reserved_memory),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Used memory should be in the stats subtree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants